GtkTreeIter iter;
GtkTreeViewColumn *column = GTK_TREE_VIEW_COLUMN (list->data);
- if (!column->visible)
+ if (!gtk_tree_view_column_get_visible (column))
continue;
gtk_tree_model_get_iter (model, &iter, path);
list = (rtl ? list->prev : list->next))
{
gint real_requested_width = 0;
- gint old_width, width;
+ gint old_width, column_width;
column = list->data;
old_width = gtk_tree_view_column_get_width (column);
g_object_notify (G_OBJECT (column), "width");
- width = gtk_tree_view_column_get_width (column);
- allocation.width = width;
- width += width;
+ column_width = gtk_tree_view_column_get_width (column);
+ allocation.width = column_width;
+ width += column_width;
- if (column->width > old_width)
+ if (column_width > old_width)
column_changed = TRUE;
gtk_widget_size_allocate (column->button, &allocation);
column->resized_width += 2;
max_width = gtk_tree_view_column_get_max_width (column);
- if (column != -1)
+ if (max_width != -1)
column->resized_width = MIN (column->resized_width, max_width);
column->use_resized_width = TRUE;
width = MAX (min_width, width);
max_width = gtk_tree_view_column_get_max_width (column);
- if (column != -1)
+ if (max_width != -1)
width = MIN (width, max_width);
*x = rtl ? (allocation.x + allocation.width - width) : (allocation.x + width);